// src/stores/imageStore.js
import { defineStore } from 'pinia';

export const useImageStore = defineStore('image', {
  state: () => ({
    images: [],
  }),
  actions: {
    addImage(image) {
      this.images.push(image);
    },
    setImages(images) {
      this.images = images;
    },
  },
  persist: true, // 启用持久化存储
});
